// var ctx = "."
function getContextPath() {
	var pathName = document.location.pathname;
	var index = pathName.substr(1).indexOf("/");
	var result = pathName.substr(0,index+1);
	return result;
}
var ctx = getContextPath();
var imgBlank   = "";
var imgSuccess = "<img class='verify-result-image' src='"+ctx+"/images/success.png' />";
var imgFail    = "<img class='verify-result-image' src='"+ctx+"/images/fail.png' />";

function verifyResultTip(element,msg){
	element.innerHTML=msg
}

/**
 * 功能：显示表单的验证结果
 * 参数：
 * 		element:显示提示信息的DOM元素
 * 		image：提示样式
 */
function verifyImageTip(element,image){
	element.innerHTML = image

}